home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-12-03 | 3.6 KB | 85 lines |
- /*
- A basic extension of the java.applet.Applet class
- */
-
- import java.awt.*;
- import java.applet.*;
-
- public class Animator extends Applet {
-
- public void init() {
- super.init();
-
- // Take out this line if you don't use symantec.itools.net.RelativeURL
- symantec.itools.lang.Context.setDocumentBase(getDocumentBase());
-
- //{{INIT_CONTROLS
- setLayout(null);
- addNotify();
- resize(426,266);
- setBackground(new Color(16758016));
- animator1 = new symantec.itools.multimedia.Animator();
- animator1.reshape(41,34,353,86);
- add(animator1);
- animator1.setDelay(70);
- try {
- java.net.URL[] tempURL = new java.net.URL[38];
- tempURL[0] = symantec.itools.net.RelativeURL.getURL("1.GIF");
- tempURL[1] = symantec.itools.net.RelativeURL.getURL("2.GIF");
- tempURL[2] = symantec.itools.net.RelativeURL.getURL("3.GIF");
- tempURL[3] = symantec.itools.net.RelativeURL.getURL("4.GIF");
- tempURL[4] = symantec.itools.net.RelativeURL.getURL("5.GIF");
- tempURL[5] = symantec.itools.net.RelativeURL.getURL("6.GIF");
- tempURL[6] = symantec.itools.net.RelativeURL.getURL("7.GIF");
- tempURL[7] = symantec.itools.net.RelativeURL.getURL("8.GIF");
- tempURL[8] = symantec.itools.net.RelativeURL.getURL("9.GIF");
- tempURL[9] = symantec.itools.net.RelativeURL.getURL("10.GIF");
- tempURL[10] = symantec.itools.net.RelativeURL.getURL("11.GIF");
- tempURL[11] = symantec.itools.net.RelativeURL.getURL("12.GIF");
- tempURL[12] = symantec.itools.net.RelativeURL.getURL("13.GIF");
- tempURL[13] = symantec.itools.net.RelativeURL.getURL("14.GIF");
- tempURL[14] = symantec.itools.net.RelativeURL.getURL("15.GIF");
- tempURL[15] = symantec.itools.net.RelativeURL.getURL("16.GIF");
- tempURL[16] = symantec.itools.net.RelativeURL.getURL("17.GIF");
- tempURL[17] = symantec.itools.net.RelativeURL.getURL("18.GIF");
- tempURL[18] = symantec.itools.net.RelativeURL.getURL("19.GIF");
- tempURL[19] = symantec.itools.net.RelativeURL.getURL("20.GIF");
- tempURL[20] = symantec.itools.net.RelativeURL.getURL("21.GIF");
- tempURL[21] = symantec.itools.net.RelativeURL.getURL("22.GIF");
- tempURL[22] = symantec.itools.net.RelativeURL.getURL("23.GIF");
- tempURL[23] = symantec.itools.net.RelativeURL.getURL("24.GIF");
- tempURL[24] = symantec.itools.net.RelativeURL.getURL("25.GIF");
- tempURL[25] = symantec.itools.net.RelativeURL.getURL("26.GIF");
- tempURL[26] = symantec.itools.net.RelativeURL.getURL("27.GIF");
- tempURL[27] = symantec.itools.net.RelativeURL.getURL("28.GIF");
- tempURL[28] = symantec.itools.net.RelativeURL.getURL("29.GIF");
- tempURL[29] = symantec.itools.net.RelativeURL.getURL("30.GIF");
- tempURL[30] = symantec.itools.net.RelativeURL.getURL("31.GIF");
- tempURL[31] = symantec.itools.net.RelativeURL.getURL("32.GIF");
- tempURL[32] = symantec.itools.net.RelativeURL.getURL("33.GIF");
- tempURL[33] = symantec.itools.net.RelativeURL.getURL("34.GIF");
- tempURL[34] = symantec.itools.net.RelativeURL.getURL("35.GIF");
- tempURL[35] = symantec.itools.net.RelativeURL.getURL("36.GIF");
- tempURL[36] = symantec.itools.net.RelativeURL.getURL("37.GIF");
- tempURL[37] = symantec.itools.net.RelativeURL.getURL("");
- animator1.setImageList(tempURL);
- } catch (java.net.MalformedURLException error) {
- }
- animator1.setPreviewMode(true);
- label1 = new java.awt.Label("Visual CafΘ");
- label1.reshape(43,132,360,107);
- label1.setFont(new Font("TimesRoman", Font.BOLD, 64));
- add(label1);
- //}}
- }
-
- public boolean handleEvent(Event event) {
- return super.handleEvent(event);
- }
-
- //{{DECLARE_CONTROLS
- symantec.itools.multimedia.Animator animator1;
- java.awt.Label label1;
- //}}
- }
-